package com.vcc.service.service;

import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.CardType;
import com.vcc.data.entity.ReserveCard;
import com.vcc.data.entity.User;
import com.vcc.data.entity.Wallet;

import java.math.BigDecimal;

public interface ReserveCardService extends IService<ReserveCard> {

    Long countByCardId(Long cardId);

    Long countByCardIdAndStatus(Long cardId, Integer status);

    ReserveCard getByPpCardId(String ppCardId);

    Boolean openCard(User user, BigDecimal rechargeAmount, CardType card, Integer count, String remark, Wallet wallet, Long cardholderId);
}
